from brispone.models import Store, Event, Coupon
from django.contrib import admin

class StoreAdmin(admin.ModelAdmin):
    list_display = ('name', 'registry')
    search_fields = ['name']

class EventAdmin(admin.ModelAdmin):
    list_display = ('title', 'active', 'sdate', 'edate', 'store', 'registry')
    search_fields = ['title']
    list_filter = ('active',)
    list_per_page = 15

class CouponAdmin(admin.ModelAdmin):
    list_display = ('name', 'start_count', 'current_count', 'event', 'registry')
    
admin.site.register(Store, StoreAdmin)
admin.site.register(Event, EventAdmin)
admin.site.register(Coupon, CouponAdmin)